import {r, mole} from "../target/release/libidealgas.so";

const constR = r;
/** 
 * @param {number} p - 压力，单位为Pa
 * @param {number} v - 体积，单位为m³
 * @param {number} t - 温度，单位为K
*/
function calcMole(p, v, t){
    return mole(p, v, t);
}

export {constR, calcMole};